#ifndef DEVICE_MODEL_H
#define DEVICE_MODEL_H

#include "IModel.h"
#include <unordered_map>


class CHTTPSession;
class deviceModel : public IModel
{
public:
    deviceModel();
    virtual ~deviceModel();
    virtual void init();
    virtual void update(const std::vector<std::string> &path, void* user);

private:
    void on_list(result* res);
    void on_channellist(result* res);
private:
    // typedef std::function<void(result* res)> Func;
    std::unordered_map<std::string , FunctionPtr<deviceModel>> m_strFunc;
    CHTTPSession *m_http;

};


#endif //DEVICE_MODEL_H
